package cn.wolfcode.p2p.base.service;

import cn.wolfcode.p2p.base.domain.RealAuth;
import cn.wolfcode.p2p.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IRealAuthService {
    int save(RealAuth realAuth);

    int update(RealAuth realAuth);

    RealAuth get(Long id);

    PageInfo queryPage(QueryObject qo);

    /**
     * 提交申请 实名认证
     * @param realAuth
     */
    void apply(RealAuth realAuth);

    /**
     * 后台审核
     * @param id 当前用户的ID
     * @param state 用户的审核状态
     * @param remark 备注信息
     */
    void audit(Long id, int state, String remark);
}
